﻿namespace MiniJob;

public class Appsettings
{
    /// <summary>
    /// 是否控制台模式
    /// </summary>
    public static bool IsAdminConsoleMode => "true".Equals(Global.Config["adminConsole"], StringComparison.CurrentCultureIgnoreCase);

    /// <summary>
    /// 数据库提供程序
    /// </summary>
    public static string? DbProvider => Global.Config["db:provider"];

    /// <summary>
    /// 数据库连接字符串
    /// </summary>
    public static string? DbConn => Global.Config["db:conn"];
}
